import request from '@/utils/request'

export function getBusinessList(params: any) {
  return request({
    url: '/business/businessList',
    method: 'get',
    params,
  })
}

export function changeSaleStaff(params: any) {
  return request({
    url: '/business/changeSaleStaff',
    method: 'get',
    params,
  })
}

export function getOrderInfo(params: any) {
  return request({
    url: '/business/orderInfo',
    method: 'get',
    params,
  })
}

export function saveOrderFlow(data: any) {
  return request({
    url: '/business/saveOrderFlow',
    method: 'post',
    data,
  })
}

export function saveQuerenYeji(data: any) {
  return request({
    url: '/business/saveQuerenYeji',
    method: 'post',
    data,
  })
}

export function saveShopLink(data: any) {
  return request({
    url: '/business/saveShopLink',
    method: 'post',
    data,
  })
}
export function saveOrderAttach(data: any) {
  return request({
    url: '/business/saveOrderAttach',
    method: 'post',
    data,
  })
}

export function saveOrderInfo(data: any) {
  return request({
    url: '/business/saveOrderInfo',
    method: 'post',
    data,
  })
}

export function saveOrderProduct(data: any) {
  return request({
    url: '/business/saveOrderProduct',
    method: 'post',
    data,
  })
}

export function deleteProduct(data: any) {
  return request({
    url: '/business/deleteProduct',
    method: 'post',
    data,
  })
}

export function saveOrderGift(data: any) {
  return request({
    url: '/business/saveOrderGift',
    method: 'post',
    data,
  })
}

export function deleteGift(data: any) {
  return request({
    url: '/business/deleteGift',
    method: 'post',
    data,
  })
}

export function savePayments(data: any) {
  return request({
    url: '/business/savePayments',
    method: 'post',
    data,
  })
}
export function saveInvoicing(data: any) {
  return request({
    url: '/business/saveInvoicing',
    method: 'post',
    data,
  })
}

export function doEdit(data: any) {
  return request({
    url: '/business/doEdit',
    method: 'post',
    data,
  })
}

export function saveDomain(data: any) {
  return request({
    url: '/business/saveDomain',
    method: 'post',
    data,
  })
}

export function saveTrusteeship(data: any) {
  return request({
    url: '/business/saveTrusteeship',
    method: 'post',
    data,
  })
}

export function doDelete(data: any) {
  return request({
    url: '/business/order/create/doDelete',
    method: 'post',
    data,
  })
}

// 列表 店铺异动
export function getOrderChangeList(params: any) {
  return request({
    url: '/OrderChange/getList',
    method: 'get',
    params,
  })
}
// 新增或修改
export function saveOrderChange(data: any) {
  return request({
    url: '/OrderChange/doEdit',
    method: 'post',
    data,
  })
}

// 输入密码
export function showPassword(data: any) {
  return request({
    url: '/Store/showPassword',
    method: 'post',
    data,
  })
}
